<script setup lang="ts">
import Mobile from "@/components/home/left/mobile-menu.vue";
import Home from "@/components/page/home.vue";
import HomeMobile from "@/components/page/home_mobile.vue";
import Single from "@/components/page/single.vue";
import { dataLocal } from "@/store/store.ts";
//页面类型
const type = dataLocal.type.page_type;
//拿到当前设备判断
const device = dataLocal.type.device;
</script>

<template>
  <Mobile />

  <template v-if="type === 'home'">
    <template v-if="device === 'pc'">
      <!-- PC首页 -->
      <Home />
    </template>
    <template v-else>
      <!-- 移动端首页 -->
      <HomeMobile />
    </template>
  </template>

  <template v-else>
    <!-- 其他页 -->
    <Single />
  </template>
</template>

<style scoped lang="less"></style>
